package com.hackerrank.challenges.countingsort3;

import java.util.Scanner;

public class Solution {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n, c[] = new int[100], s = 0;
		n = in.nextInt();
		for(int i = 0; i < n; i++) {
			c[in.nextInt()]++;
			in.nextLine();
		}
		for(int i = 0; i < 100; i++) {
			s += c[i];
			System.out.print(s + " ");
		}
		System.out.println();
	}
}
